﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;

namespace HardToolApp.Tool
{
    internal class ViewModelHelper:Attribute
    {
        public string HeaderName;
        public Type controlType;
        public Type ModelType;
        public Type SendType;
        public int Sort;

        public ViewModelHelper(string name,Type control, Type model, Type sendType = null,int sort = -1)
        {
            HeaderName = name;
            controlType = control;
            //this.control = Activator.CreateInstance(control);
            ModelType = model;
            Sort = sort;
            if (sendType != null)
            {
                SendType = sendType;
            }
            else
            {
                SendType = model;
            }
        }
    }
}
